﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace StaffInformation
{
    public abstract class Staff
    {
        private string _name;
        private int _age;
        private StaffType _staffType;

        public string Name 
        {
            get 
            { 
                return _name; 
            }
            set
            {
                if (value == null)
                {
                    throw new ArgumentException("Name cannot be blank {0}", Name);
                }
            }
        }
        public virtual int Age { get { return _age; } }
        public StaffType StaffType { get { return _staffType; } }

        public Staff(string name, int age, StaffType staffType)
        {
            this._name = name;
            this._age = age;
            this._staffType = staffType;
            //string StaffName = Console.ReadLine();
            //Console.Write("Please input staff name:{0}", StaffName);
        }        
        //public void StaffID(_id)
        //{
        //    return 82099201;
        //}
    }
    
}
